//package org.example.aop;
//
//import lombok.extern.slf4j.Slf4j;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.Signature;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Pointcut;
//import org.aspectj.lang.reflect.MethodSignature;
//import org.springframework.stereotype.Component;
//
//@Aspect
//@Component
//@Slf4j
//public class LogAOP {
//
//    @Pointcut(value = "execution(* org.example.controller.*.*(..)))")
//    public void aspect(){}
//
//    @Around(value = "aspect()")
//    public Object around(ProceedingJoinPoint pjp) throws Throwable{
//        MethodSignature signature = (MethodSignature)pjp.getSignature();
//        long time = System.currentTimeMillis();
//        String[] parameterNames = signature.getParameterNames();
//        String name = signature.getReturnType().getName();
//        log.debug("---执行的方法是:{},参数是：{},返回类型是{}---",signature.getMethod().getName(),parameterNames,name);
//        Object proceed = pjp.proceed();
//        log.debug("---请求执行完成，用时{}ms---",(System.currentTimeMillis()-time));
//        return proceed;
//
//
//    }
//}
